import java.util.concurrent.Executors;

/**
 * Created by codeczx on 2018/3/22.
 */
public class Test {

    public static void main(String[] args) {
        WebCrawler webCrawler = new WebCrawler(new TrackingExecutor(Executors.newFixedThreadPool(5)));
        webCrawler.start();
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        webCrawler.stop();
    }
}
